package com.huawei.crm.sample.adapter.inbound.rest.product.converter;

import com.huawei.crm.sample.adapter.inbound.rest.product.request.ProductReq;
import com.huawei.crm.sample.application.product.dto.ProductDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface ProductReqConverter {
    ProductReqConverter INSTANCE = Mappers.getMapper(ProductReqConverter.class);

    ProductDTO toDTO(ProductReq req);
    ProductReq toReq(ProductDTO dto);
} 